#include "StdAfx.h"
#include "ProcParamDefInt.h"
#include "ProcParamDefDouble.h"
#include "ImageProcFn.h"
#include "DummyAnalysis.h"

const char * const DummyAnalysis::FunctionNameDummyAnalysis = "CalcScore";

DummyAnalysis::DummyAnalysis(void)
{
	_fnApi.SetFunctionName(DummyAnalysis::FunctionNameDummyAnalysis);
	_fnApi.SetFunctionDescription("this is a dummy function with one i/p param and two o/p param");
									//inputs
	_fnApi.AddParamDef(new ProcParamDefInt(0, "brightness", "sets brightness of image in range 0 to 100", ProcParamDef::input, 0, 100 ));
									//outputs
	_fnApi.AddParamDef(new ProcParamDefInt(0, ProcParam::attribOutputParamNameResult, "0 is success; 1 is exception", ProcParamDef::output, 0, 1));
	_fnApi.AddParamDef(new ProcParamDefDouble(1, ProcParam::attribOutputParamNameScore, "score in range 0.0 to 100.0 - higher values are better than lower", ProcParamDef::output, 0.0, 100.0));

	_fnApi.Validate();
}


DummyAnalysis::~DummyAnalysis(void)
{
}


bool DummyAnalysis::Process(int cnt)
{

	return true;
}

